1
کامپیوتر و شبکه::
مولفه ورودی
There is one new feature in this template, which allows the user to change the quantity of a product in the cart by changing the value in an input element, like this:
The two-way data binding allows the user to change the quantity for a product using the input element.
If you change the value 1 in the input element to 5, for example, the subtotal and total will be updated to reflect the change, as shown in Figure 9-4.
Two-way data bindings, defined using the ngModel directive and the banana-in-a-box brackets, tell Angular which data value should be associated with the input element, like this:
This data binding creates a two-way binding on the component's order.name property, which will be used to set the value of the input element and updated when the user enters a value.
واژگان شبکه مترجمین ایران